FROM docker.io/bitnami/php-fpm:7.4
MAINTAINER Rocoder liuhuiyu.cn
USER root
WORKDIR /app
RUN mv /etc/apt/sources.list  /etc/apt/sources.list.bk \
    && echo "deb http://mirrors.aliyun.com/debian/ buster main non-free contrib" > /etc/apt/sources.list \
    && echo "deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib" >> /etc/apt/sources.list \
    && echo "deb http://mirrors.aliyun.com/debian-security buster/updates main" >> /etc/apt/sources.list \
    && echo "deb-src http://mirrors.aliyun.com/debian-security buster/updates main" >> /etc/apt/sources.list \
    && echo "deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib" >> /etc/apt/sources.list \
    && echo "deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib" >> /etc/apt/sources.list \
    && echo "deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib" >> /etc/apt/sources.list \
    && echo "deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib" >> /etc/apt/sources.list \
    && apt-get update \
    && cd ~ && apt-get -y install git \ 
    && git clone https://gitee.com/usernamehaiyu/tool.git && cd tool \
    && chmod +x pickle.phar && ./pickle.phar info apcu \
    && apt-get -y install gcc automake autoconf libtool make \
    && php pickle.phar install redis
